

class KNode(object):
    __slots__ = ("nid", "ip", "port")

    def __init__(self, nid, ip ,port):
        self.nid = nid
        self.ip = ip
        self.port = port

    def __eq__(self, other):
        return self.nid == other.nid

